import baseUrl from '@/api/baseUrl'
import http from '@/api/http'

const root = '/videos'

export function getUrl (id) {
  return baseUrl + '/' + root + '/' + id
}

export function list (query) {
  return http({
    url: root + '/list',
    method: 'post',
    data: query
  })
}
